/**********************************************************************
  The MIT License (MIT)
  Copyright (c) 2012 sunriseyuen

  Permission is hereby granted, free of charge, to any person obtaining
  a copy of this software and associated documentation files
  (the "Software"), to deal in the Software without restriction,
  including without limitation the rights to use, copy, modify, merge,
  publish, distribute, sublicense, and/or sell copies of the Software,
  and to permit persons to whom the Software is furnished to do so,
  subject to the following conditions:

  The above copyright notice and this permission notice shall be included
  in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
  THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 ***********************************************************************/

	#define _DEF_CCY_CODE
	#define _ZZDEBUG
	#define _PROJ_DC

	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	

#region Using directives

using System;
using System.Text;
using System.IO;
using System.Xml;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Reflection;
using System.Web;
using System.Web.UI;

using Muki.Framework;
using Muki.Framework.UI;
using Muki.Framework.Business;
using Muki.Framework.Util;
using Muki.UserDefine;
using Muki.Entity;
using Dot.StreamObject;

using Dot.Tmpl;
using Dot.Tmpl.Parser;

#endregion

namespace Muki.UserPanel
{

	public class UID02001AV
	{
		public UID02001AV()
		{
		}

		public void setValue()
		{
			

				_lnk_RW_NO=ZZGeneral.XRequest("lnk_RW_NO");
				if (ZZGeneral.XRequest("lnk_UID_CODE_DAT")!="")
				{
					_Wxf = new Wxf();
					_Wxf.Parser(System.Web.HttpUtility.UrlDecode(ZZGeneral.XRequest("lnk_UID_CODE_DAT")));
					_Wxf.Open();

					ZZTrace.WriteToFile(this.APP_PATH+"\\temp\\UID02001A2.js",_Wxf.ToString());
					_lnk_MODE="B";
				}


					_UID02001AEntity.UID_CODE = _Convert.ToString(objZUPRGHDM_UID_CODE.Text);
					if (_STATUS_DATA["IsPostBack"]=="")
					{
						if (ZZGeneral.XRequest("lnk_ZUPRGHDM_UID_CODE")!="")
						{
							_UID02001AEntity.UID_CODE = ZZGeneral.XRequest("lnk_ZUPRGHDM_UID_CODE");
						}
					}

					_UID02001AEntity.ABBR_NAME = _Convert.ToString(objZUPRGHDM_ABBR_NAME.Text);

					_UID02001AEntity.TABLE_NAME = _Convert.ToString(objZUPRGHDM_TABLE_NAME.Text);

					_UID02001AEntity.PK_COLUMN_NAME = _Convert.ToString(objZUPRGHDM_PK_COLUMN_NAME.Text);

					_UID02001AEntity.PK_TP_CODE = _Convert.ToString(objZUPRGHDM_PK_TP_CODE.Text);

					_UID02001AEntity.UID_TP_CODE = _Convert.ToString(objZUPRGHDM_UID_TP_CODE.Text);

					_UID02001AEntity.LNK_UID_CODE = _Convert.ToString(objZUPRGHDM_LNK_UID_CODE.Text);

					_UID02001AEntity.USQL_CODE = _Convert.ToString(objZUPRGHDM_USQL_CODE.Text);

					_UID02001AEntity.ACTIVE_BIT = _Convert.ToBoolean(objZUPRGHDM_ACTIVE_BIT.Text);

					_UID02001AEntity.UID_CHS_NAME = _Convert.ToString(objVARIABLE_UID_CHS_NAME.Text);

					_UID02001AEntity.UID_ENG_NAME = _Convert.ToString(objVARIABLE_UID_ENG_NAME.Text);

		}

		public void getValue()
		{
					objWebPanels["UID02001A","PK_UID_CODE"]=_Convert.ToString(_UID02001AEntity.UID_CODE);

					objZUPRGHDM_UID_CODE.Text=_Convert.ToString(_UID02001AEntity.UID_CODE);
					objZUPRGHDM_ABBR_NAME.Text=_Convert.ToString(_UID02001AEntity.ABBR_NAME);
					objZUPRGHDM_TABLE_NAME.Text=_Convert.ToString(_UID02001AEntity.TABLE_NAME);
					objZUPRGHDM_PK_COLUMN_NAME.Text=_Convert.ToString(_UID02001AEntity.PK_COLUMN_NAME);
					objZUPRGHDM_PK_TP_CODE.Text=_Convert.ToString(_UID02001AEntity.PK_TP_CODE);
					objZUPRGHDM_UID_TP_CODE.Text=_Convert.ToString(_UID02001AEntity.UID_TP_CODE);
					objZUPRGHDM_LNK_UID_CODE.Text=_Convert.ToString(_UID02001AEntity.LNK_UID_CODE);
					objZUPRGHDM_USQL_CODE.Text=_Convert.ToString(_UID02001AEntity.USQL_CODE);
					objZUPRGHDM_ACTIVE_BIT.Text=_Convert.ToString(_UID02001AEntity.ACTIVE_BIT);
					objVARIABLE_UID_CHS_NAME.Text=_Convert.ToString(_UID02001AEntity.UID_CHS_NAME);
					objVARIABLE_UID_ENG_NAME.Text=_Convert.ToString(_UID02001AEntity.UID_ENG_NAME);

				objZUPRGHDM_USECURITY_CODE1.Text=_UID02001AEntity.USECURITY_CODE1;
							objZUPRGHDM_USECURITY_CODE2.Text=_UID02001AEntity.USECURITY_CODE2;
							objZUPRGHDM_USECURITY_CODE3.Text=_UID02001AEntity.USECURITY_CODE3;
							objZUPRGHDM_USECURITY_CODE4.Text=_UID02001AEntity.USECURITY_CODE4;
							objZUPRGHDM_USECURITY_CODE5.Text=_UID02001AEntity.USECURITY_CODE5;
							objZUPRGHDM_USECURITY_CODE6.Text=_UID02001AEntity.USECURITY_CODE6;
			
			objZUPRGHDM_USECURITY_RIGHT.Text = _UID02001AEntity.USECURITY_RIGHT.ToString();
			objZUPRGHDM_UZADD_DATE.Text      = _UID02001AEntity.UZADD_DATE;
			objZUPRGHDM_UZADD_USER.Text      = _UID02001AEntity.UZADD_USER;
			objZUPRGHDM_UZCHG_DATE.Text      = _UID02001AEntity.UZCHG_DATE;
			objZUPRGHDM_UZCHG_USER.Text      = _UID02001AEntity.UZCHG_USER;
		}

		public void OnInit(HttpContext  objHttpContext)		
		{

			this.UID_CODE = "UID02001A";

			this.DbName = ZZGeneral.DbName();

			_STATUS_DATA.OnInit(objHttpContext);

			_STATUS_DATA["lnk_UID_CODE"] = this.UID_CODE;
			_STATUS_DATA["ZZUSQL_CODE"] = "QID02001A";

			this.ZZEventOpts        = _STATUS_DATA["ZZEventOpts"];
			this.ZZLOGON_SSD        = _STATUS_DATA["ZZLOGON_SSD"];
			this.ZZLOGON_LANG       = _STATUS_DATA["ZZLOGON_LANG"];
			this.ZZEventStatus      = _STATUS_DATA["ZZEventStatus"];
			this.ZZEventStage       = _STATUS_DATA["ZZEventStage"];
			this.ZZEventArgs        = _STATUS_DATA["ZZEventArgs"];
			this.ZZVIEW_STATUS_CODE = _STATUS_DATA["ZZVIEW_STATUS_CODE"];
			this.ZZVIEW_STAGEU_CODE = _STATUS_DATA["ZZVIEW_STAGEU_CODE"];
			this.ZZLOGON_MODE       = _STATUS_DATA["ZZLOGON_MODE"];
			this.ZZVIEW_MODE_CODE   = _STATUS_DATA["ZZVIEW_MODE_CODE"];

			ZZTrace.Debug(ZFILE_NAME,"...123456...---"+this.ZZLOGON_SSD);

			ZZTrace.Debug(ZFILE_NAME,".ZZLOGON_MODE-"+this.ZZLOGON_MODE);

			this.Trans = new StreamContext(this.DbName);

			XLiveManagement oXLiveManagement=XLiveManagement.getInstance();
			oXLiveManagement.DbName=this.DbName;
			this.ZZLOGON_ID=oXLiveManagement[this.ZZLOGON_SSD].getValue("LOGON_ID");
			
			if (this.ZZLOGON_LANG=="")
			{
				this.ZZLOGON_LANG=oXLiveManagement[this.ZZLOGON_SSD].getValue("LOGON_LANG");
			}

			ZZTrace.Debug(ZFILE_NAME,"...123456...---"+this.ZZLOGON_LANG);

			_STATUS_DATA["ZZLOGON_LANG"] = this.ZZLOGON_LANG;

			_Convert.ZZLOGON_SSD = this.ZZLOGON_SSD;
			_Convert.Trans       = this.Trans;

			_Captions             = new ZZCaptions();
			_Captions.DbName      = this.DbName;
			_Captions.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			_Captions.ZZLOGON_SSD = this.ZZLOGON_SSD;


			_DocsPermission.Trans = this.Trans;

			dbTab objdbTab       = new dbTab();
			objdbTab.UID_CODE    = this.UID_CODE;
			objdbTab.Trans       = this.Trans;
			objdbTab.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			objdbTab.ZZLOGON_SSD = this.ZZLOGON_SSD;
			objdbTab.Create();

			objWebPanels=objdbTab.Panels;

			oWindow.AddPanels(objWebPanels);
			oWindow.Trans       = this.Trans;
			oWindow.ZZLOGON_SSD = this.ZZLOGON_SSD;
			oWindow.ZZLOGON_LANG  = this.ZZLOGON_LANG;

			Muki.Framework.ZZSetting oZZSetting = new Muki.Framework.ZZSetting();
			oZZSetting.Trans=this.Trans;

#region Quick Search

			_WebOption.Name             = "Txt_Quick_Field";
			_WebOption.STATUS_CODE      = "VIEW";
			_WebOption.VIEW_STATUS_CODE = "VIEW";


			bool ZZLOOKUP_ANY_COLUMN = oZZSetting.getBoolean("ZZLOOKUP_ANY_COLUMN", "YES");
			if (ZZLOOKUP_ANY_COLUMN)
			{
				_WebOption.Add("ZZLOOKUP_ANY_COLUMN",_Captions.Caption(this.UID_CODE,"lbl_ZZLOOKUP_ANY_COLUMN"));
				_WebOption.STATUS_CODE = "HIDDEN";
				_WebOption.VIEW_STAGEU_CODE = "HIDDEN";
			}

					_WebOption.Add("ZUPRGHDM.UID_CODE",_Captions.Caption(this.UID_CODE,"lbl_UID0_CODE"));
					_WebOption.Add("ZUPRGHDM.ABBR_NAME",_Captions.Caption(this.UID_CODE,"lbl_ABBR_NAME"));
					_WebOption.Add("ZUPRGHDM.TABLE_NAME",_Captions.Caption(this.UID_CODE,"lbl_TABLE_NAME"));
					_WebOption.Add("ZUPRGHDM.PK_COLUMN_NAME",_Captions.Caption(this.UID_CODE,"lbl_PK_COLUMN_NAME"));
					_WebOption.Add("ZUPRGHDM.PK_TP_CODE",_Captions.Caption(this.UID_CODE,"lbl_PK_TP_CODE"));
					_WebOption.Add("ZUPRGHDM.UID_TP_CODE",_Captions.Caption(this.UID_CODE,"lbl_UID_TP_CODE"));
					_WebOption.Add("ZUPRGHDM.LNK_UID_CODE",_Captions.Caption(this.UID_CODE,"lbl_LNK_UID_CODE"));
					_WebOption.Add("ZUPRGHDM.USQL_CODE",_Captions.Caption(this.UID_CODE,"lbl_USQL_CODE"));

			_WebLookup.UGET_CODE   = "QDD02001A";
			_WebLookup.Trans       = this.Trans;
			_WebLookup.DbName      = this.DbName;
			_WebLookup.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			_WebLookup.ZZLOGON_SSD = this.ZZLOGON_SSD;
			_WebLookup.XWebOption  = _WebOption;


				oWindow.AddLookUp(_WebLookup);

			XOption objXOption     = new XOption();
			objXOption.UID_CODE    = this.UID_CODE;
			objXOption.Trans       = this.Trans;

			XDepend objXDepend     = new XDepend();
			objXDepend.UID_CODE    = this.UID_CODE;
			objXDepend.Trans       = this.Trans;
			objXDepend.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			objXDepend.ZZLOGON_SSD = this.ZZLOGON_SSD;

			ZZCDF _ZZCDF      = new ZZCDF();
			_ZZCDF.UID_CODE   = this.UID_CODE;
			_ZZCDF.Trans      = this.Trans;

#endregion

			oXForm             = new XForm();
			oXForm.UID_CODE    = this.UID_CODE;
			oXForm.DbName      = this.DbName;
			oXForm.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			oXForm.ZZLOGON_SSD = this.ZZLOGON_SSD;


			//oXForm.Trans     = this.Trans;

#region XForm element


#region ZUPRGHDM_UID_CODE
				objZUPRGHDM_UID_CODE.Name          = "Txt_ZUPRGHDM_UID_CODE";
				objZUPRGHDM_UID_CODE.OnBlurEvents  = "";
				objZUPRGHDM_UID_CODE.Length        = 12;
				objZUPRGHDM_UID_CODE.Height        = 0;
				objZUPRGHDM_UID_CODE.COLUMN_SCALE = 0;
				objZUPRGHDM_UID_CODE.STATUS_CODE   = "ADDNEW";
				objZUPRGHDM_UID_CODE.Compulsory    = false;
				objZUPRGHDM_UID_CODE.Caption       = _Captions.Caption(this.UID_CODE,"lbl_UID0_CODE");
				objZUPRGHDM_UID_CODE.COLSPAN       = 1;
				objZUPRGHDM_UID_CODE.ROWSPAN       = 1;
				objZUPRGHDM_UID_CODE.Index         = 1000;
				objZUPRGHDM_UID_CODE.NEW_LINE      = true;
				objZUPRGHDM_UID_CODE.NEW_CELL      = true;
				objZUPRGHDM_UID_CODE.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGHDM_UID_CODE);
				oWindow.Components.Add(objZUPRGHDM_UID_CODE);
				


#endregion //ZUPRGHDM_UID_CODE


#region ZUPRGHDM_ABBR_NAME
				objZUPRGHDM_ABBR_NAME.Name          = "Txt_ZUPRGHDM_ABBR_NAME";
				objZUPRGHDM_ABBR_NAME.OnBlurEvents  = "";
				objZUPRGHDM_ABBR_NAME.Length        = 20;
				objZUPRGHDM_ABBR_NAME.Height        = 0;
				objZUPRGHDM_ABBR_NAME.COLUMN_SCALE = 0;
				objZUPRGHDM_ABBR_NAME.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGHDM_ABBR_NAME.Compulsory    = false;
				objZUPRGHDM_ABBR_NAME.Caption       = _Captions.Caption(this.UID_CODE,"lbl_ABBR_NAME");
				objZUPRGHDM_ABBR_NAME.COLSPAN       = 1;
				objZUPRGHDM_ABBR_NAME.ROWSPAN       = 1;
				objZUPRGHDM_ABBR_NAME.Index         = 1010;
				objZUPRGHDM_ABBR_NAME.NEW_LINE      = false;
				objZUPRGHDM_ABBR_NAME.NEW_CELL      = true;
				objZUPRGHDM_ABBR_NAME.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGHDM_ABBR_NAME);
				oWindow.Components.Add(objZUPRGHDM_ABBR_NAME);
				


#endregion //ZUPRGHDM_ABBR_NAME


#region ZUPRGHDM_TABLE_NAME
				objZUPRGHDM_TABLE_NAME.Name          = "Txt_ZUPRGHDM_TABLE_NAME";
				objZUPRGHDM_TABLE_NAME.OnBlurEvents  = "";
				objZUPRGHDM_TABLE_NAME.Length        = 20;
				objZUPRGHDM_TABLE_NAME.Height        = 0;
				objZUPRGHDM_TABLE_NAME.COLUMN_SCALE = 0;
				objZUPRGHDM_TABLE_NAME.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGHDM_TABLE_NAME.Compulsory    = false;
				objZUPRGHDM_TABLE_NAME.Caption       = _Captions.Caption(this.UID_CODE,"lbl_TABLE_NAME");
				objZUPRGHDM_TABLE_NAME.COLSPAN       = 1;
				objZUPRGHDM_TABLE_NAME.ROWSPAN       = 1;
				objZUPRGHDM_TABLE_NAME.Index         = 1020;
				objZUPRGHDM_TABLE_NAME.NEW_LINE      = true;
				objZUPRGHDM_TABLE_NAME.NEW_CELL      = true;
				objZUPRGHDM_TABLE_NAME.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGHDM_TABLE_NAME);
				oWindow.Components.Add(objZUPRGHDM_TABLE_NAME);
				


#endregion //ZUPRGHDM_TABLE_NAME


#region ZUPRGHDM_PK_COLUMN_NAME
				objZUPRGHDM_PK_COLUMN_NAME.Name          = "Txt_ZUPRGHDM_PK_COLUMN_NAME";
				objZUPRGHDM_PK_COLUMN_NAME.OnBlurEvents  = "";
				objZUPRGHDM_PK_COLUMN_NAME.Length        = 20;
				objZUPRGHDM_PK_COLUMN_NAME.Height        = 0;
				objZUPRGHDM_PK_COLUMN_NAME.COLUMN_SCALE = 0;
				objZUPRGHDM_PK_COLUMN_NAME.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGHDM_PK_COLUMN_NAME.Compulsory    = false;
				objZUPRGHDM_PK_COLUMN_NAME.Caption       = _Captions.Caption(this.UID_CODE,"lbl_PK_COLUMN_NAME");
				objZUPRGHDM_PK_COLUMN_NAME.COLSPAN       = 1;
				objZUPRGHDM_PK_COLUMN_NAME.ROWSPAN       = 1;
				objZUPRGHDM_PK_COLUMN_NAME.Index         = 1030;
				objZUPRGHDM_PK_COLUMN_NAME.NEW_LINE      = false;
				objZUPRGHDM_PK_COLUMN_NAME.NEW_CELL      = true;
				objZUPRGHDM_PK_COLUMN_NAME.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGHDM_PK_COLUMN_NAME);
				oWindow.Components.Add(objZUPRGHDM_PK_COLUMN_NAME);
				


#endregion //ZUPRGHDM_PK_COLUMN_NAME


#region ZUPRGHDM_PK_TP_CODE
				objZUPRGHDM_PK_TP_CODE.Name          = "Txt_ZUPRGHDM_PK_TP_CODE";
				objZUPRGHDM_PK_TP_CODE.OnBlurEvents  = "";
				objZUPRGHDM_PK_TP_CODE.Length        = 8;
				objZUPRGHDM_PK_TP_CODE.Height        = 0;
				objZUPRGHDM_PK_TP_CODE.COLUMN_SCALE = 0;
				objZUPRGHDM_PK_TP_CODE.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGHDM_PK_TP_CODE.Compulsory    = false;
				objZUPRGHDM_PK_TP_CODE.Caption       = _Captions.Caption(this.UID_CODE,"lbl_PK_TP_CODE");
				objZUPRGHDM_PK_TP_CODE.COLSPAN       = 1;
				objZUPRGHDM_PK_TP_CODE.ROWSPAN       = 1;
				objZUPRGHDM_PK_TP_CODE.Index         = 1040;
				objZUPRGHDM_PK_TP_CODE.NEW_LINE      = true;
				objZUPRGHDM_PK_TP_CODE.NEW_CELL      = true;
				objZUPRGHDM_PK_TP_CODE.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGHDM_PK_TP_CODE);
				oWindow.Components.Add(objZUPRGHDM_PK_TP_CODE);
				


#endregion //ZUPRGHDM_PK_TP_CODE


#region ZUPRGHDM_UID_TP_CODE
				objZUPRGHDM_UID_TP_CODE.Name          = "Txt_ZUPRGHDM_UID_TP_CODE";
				objZUPRGHDM_UID_TP_CODE.OnBlurEvents  = "";
				objZUPRGHDM_UID_TP_CODE.Length        = 8;
				objZUPRGHDM_UID_TP_CODE.Height        = 0;
				objZUPRGHDM_UID_TP_CODE.COLUMN_SCALE = 0;
				objZUPRGHDM_UID_TP_CODE.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGHDM_UID_TP_CODE.Compulsory    = false;
				objZUPRGHDM_UID_TP_CODE.Caption       = _Captions.Caption(this.UID_CODE,"lbl_UID_TP_CODE");
				objZUPRGHDM_UID_TP_CODE.COLSPAN       = 1;
				objZUPRGHDM_UID_TP_CODE.ROWSPAN       = 1;
				objZUPRGHDM_UID_TP_CODE.Index         = 1050;
				objZUPRGHDM_UID_TP_CODE.NEW_LINE      = false;
				objZUPRGHDM_UID_TP_CODE.NEW_CELL      = true;
				objZUPRGHDM_UID_TP_CODE.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGHDM_UID_TP_CODE);
				oWindow.Components.Add(objZUPRGHDM_UID_TP_CODE);
				


#endregion //ZUPRGHDM_UID_TP_CODE


#region ZUPRGHDM_LNK_UID_CODE
				objZUPRGHDM_LNK_UID_CODE.Name          = "Txt_ZUPRGHDM_LNK_UID_CODE";
				objZUPRGHDM_LNK_UID_CODE.OnBlurEvents  = "";
				objZUPRGHDM_LNK_UID_CODE.Length        = 12;
				objZUPRGHDM_LNK_UID_CODE.Height        = 0;
				objZUPRGHDM_LNK_UID_CODE.COLUMN_SCALE = 0;
				objZUPRGHDM_LNK_UID_CODE.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGHDM_LNK_UID_CODE.Compulsory    = false;
				objZUPRGHDM_LNK_UID_CODE.Caption       = _Captions.Caption(this.UID_CODE,"lbl_LNK_UID_CODE");
				objZUPRGHDM_LNK_UID_CODE.COLSPAN       = 1;
				objZUPRGHDM_LNK_UID_CODE.ROWSPAN       = 1;
				objZUPRGHDM_LNK_UID_CODE.Index         = 1060;
				objZUPRGHDM_LNK_UID_CODE.NEW_LINE      = true;
				objZUPRGHDM_LNK_UID_CODE.NEW_CELL      = true;
				objZUPRGHDM_LNK_UID_CODE.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGHDM_LNK_UID_CODE);
				oWindow.Components.Add(objZUPRGHDM_LNK_UID_CODE);
				


#endregion //ZUPRGHDM_LNK_UID_CODE


#region ZUPRGHDM_USQL_CODE
				objZUPRGHDM_USQL_CODE.Name          = "Txt_ZUPRGHDM_USQL_CODE";
				objZUPRGHDM_USQL_CODE.OnBlurEvents  = "";
				objZUPRGHDM_USQL_CODE.Length        = 20;
				objZUPRGHDM_USQL_CODE.Height        = 0;
				objZUPRGHDM_USQL_CODE.COLUMN_SCALE = 0;
				objZUPRGHDM_USQL_CODE.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGHDM_USQL_CODE.Compulsory    = false;
				objZUPRGHDM_USQL_CODE.Caption       = _Captions.Caption(this.UID_CODE,"lbl_USQL_CODE");
				objZUPRGHDM_USQL_CODE.COLSPAN       = 1;
				objZUPRGHDM_USQL_CODE.ROWSPAN       = 1;
				objZUPRGHDM_USQL_CODE.Index         = 1070;
				objZUPRGHDM_USQL_CODE.NEW_LINE      = false;
				objZUPRGHDM_USQL_CODE.NEW_CELL      = true;
				objZUPRGHDM_USQL_CODE.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGHDM_USQL_CODE);
				oWindow.Components.Add(objZUPRGHDM_USQL_CODE);
				


#endregion //ZUPRGHDM_USQL_CODE


#region ZUPRGHDM_ACTIVE_BIT
				objZUPRGHDM_ACTIVE_BIT.Name          = "Txt_ZUPRGHDM_ACTIVE_BIT";
				objZUPRGHDM_ACTIVE_BIT.OnBlurEvents  = "";
				objZUPRGHDM_ACTIVE_BIT.Length        = 0;
				objZUPRGHDM_ACTIVE_BIT.Height        = 0;
				objZUPRGHDM_ACTIVE_BIT.COLUMN_SCALE = 0;
				objZUPRGHDM_ACTIVE_BIT.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGHDM_ACTIVE_BIT.Compulsory    = false;
				objZUPRGHDM_ACTIVE_BIT.Caption       = _Captions.Caption(this.UID_CODE,"lbl_ACTIVE_BIT");
				objZUPRGHDM_ACTIVE_BIT.COLSPAN       = 1;
				objZUPRGHDM_ACTIVE_BIT.ROWSPAN       = 1;
				objZUPRGHDM_ACTIVE_BIT.Index         = 1080;
				objZUPRGHDM_ACTIVE_BIT.NEW_LINE      = true;
				objZUPRGHDM_ACTIVE_BIT.NEW_CELL      = true;
				objZUPRGHDM_ACTIVE_BIT.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGHDM_ACTIVE_BIT);
				oWindow.Components.Add(objZUPRGHDM_ACTIVE_BIT);
				


#endregion //ZUPRGHDM_ACTIVE_BIT


#region VARIABLE_UID_CHS_NAME
				objVARIABLE_UID_CHS_NAME.Name          = "Txt_VARIABLE_UID_CHS_NAME";
				objVARIABLE_UID_CHS_NAME.OnBlurEvents  = "";
				objVARIABLE_UID_CHS_NAME.Length        = 40;
				objVARIABLE_UID_CHS_NAME.Height        = 0;
				objVARIABLE_UID_CHS_NAME.COLUMN_SCALE = 0;
				objVARIABLE_UID_CHS_NAME.STATUS_CODE   = "ADDNEW,UPDATE";
				objVARIABLE_UID_CHS_NAME.Compulsory    = false;
				objVARIABLE_UID_CHS_NAME.Caption       = _Captions.Caption(this.UID_CODE,"lbl_UID_CHS_NAME");
				objVARIABLE_UID_CHS_NAME.COLSPAN       = 4;
				objVARIABLE_UID_CHS_NAME.ROWSPAN       = 1;
				objVARIABLE_UID_CHS_NAME.Index         = 1090;
				objVARIABLE_UID_CHS_NAME.NEW_LINE      = true;
				objVARIABLE_UID_CHS_NAME.NEW_CELL      = true;
				objVARIABLE_UID_CHS_NAME.LINE_REVEAL   = false;


				oXForm.AddObject(objVARIABLE_UID_CHS_NAME);
				oWindow.Components.Add(objVARIABLE_UID_CHS_NAME);
				


#endregion //VARIABLE_UID_CHS_NAME


#region VARIABLE_UID_ENG_NAME
				objVARIABLE_UID_ENG_NAME.Name          = "Txt_VARIABLE_UID_ENG_NAME";
				objVARIABLE_UID_ENG_NAME.OnBlurEvents  = "";
				objVARIABLE_UID_ENG_NAME.Length        = 40;
				objVARIABLE_UID_ENG_NAME.Height        = 0;
				objVARIABLE_UID_ENG_NAME.COLUMN_SCALE = 0;
				objVARIABLE_UID_ENG_NAME.STATUS_CODE   = "ADDNEW,UPDATE";
				objVARIABLE_UID_ENG_NAME.Compulsory    = false;
				objVARIABLE_UID_ENG_NAME.Caption       = _Captions.Caption(this.UID_CODE,"lbl_UID_ENG_NAME");
				objVARIABLE_UID_ENG_NAME.COLSPAN       = 4;
				objVARIABLE_UID_ENG_NAME.ROWSPAN       = 1;
				objVARIABLE_UID_ENG_NAME.Index         = 1100;
				objVARIABLE_UID_ENG_NAME.NEW_LINE      = true;
				objVARIABLE_UID_ENG_NAME.NEW_CELL      = true;
				objVARIABLE_UID_ENG_NAME.LINE_REVEAL   = false;


				oXForm.AddObject(objVARIABLE_UID_ENG_NAME);
				oWindow.Components.Add(objVARIABLE_UID_ENG_NAME);
				


#endregion //VARIABLE_UID_ENG_NAME


			_ZZCDF.Process();

			foreach (VContexts oVContexts in _ZZCDF.ZZCDFS) 
			{
				AComponent oCDFElement;

				if (oVContexts.getValue("CDF_TP_CODE")=="D")
				{
					oCDFElement=new WebDateBox();
				}else if (oVContexts.getValue("CDF_CODE")=="L")
				{
					oCDFElement=new WebCheckBox();
				}else if (oVContexts.getValue("CDF_CODE")=="N")
				{
					oCDFElement=new WebFloatBox();
				}else{
					oCDFElement=new WebTextBox();
				}

				oCDFElement.Name          = "Txt_CDF_"+oVContexts.getValue("CDF_CODE");
				oCDFElement.Length        = oVContexts.getInteger("CDF_LENGTH");
				oCDFElement.Height        = 1;
				oCDFElement.COLUMN_SCALE = oVContexts.getInteger("COLUMN_SCALE");
				oCDFElement.STATUS_CODE   = oVContexts.getValue("STATUS_CODE");
				oCDFElement.Compulsory    = !oVContexts.getBoolean("COLUMN_NULLABLE");

				if (oVContexts.getValue("LABEL_ID")!="")
				{
					oCDFElement.Caption     =_Captions.Caption(this.UID_CODE,oVContexts.getValue("LABEL_ID"));
				}else{
					oCDFElement.Caption     =oVContexts.getValue("CDF_NAME01");
				}
				oCDFElement.COLSPAN      = 1;
				oCDFElement.ROWSPAN      = 1;
				oCDFElement.Index        = oVContexts.getInteger("ORDINAL");
				oCDFElement.NEW_LINE     = true;
				oCDFElement.NEW_CELL     = true;
				oCDFElement.LINE_REVEAL  = false;

				_ZZCDFElect.Add(oCDFElement);
				oXForm.AddObject(oCDFElement);
				oWindow.Components.Add(oCDFElement);

			}


#endregion

				if (_DocsPermission.AccessRight(this.UID_CODE,this.ZZLOGON_ID,"SECURITY_CODE")==true)
				{
#region SECURITY_CODE


							objZUPRGHDM_USECURITY_CODE1.NEW_LINE    =true;
						objZUPRGHDM_USECURITY_CODE1.Name    = "Txt_ZUPRGHDM_USECURITY_CODE1";
						objZUPRGHDM_USECURITY_CODE1.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE1");
						oXForm.AuthObject(objZUPRGHDM_USECURITY_CODE1);

											objZUPRGHDM_USECURITY_CODE2.Name    = "Txt_ZUPRGHDM_USECURITY_CODE2";
						objZUPRGHDM_USECURITY_CODE2.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE2");
						oXForm.AuthObject(objZUPRGHDM_USECURITY_CODE2);

												objZUPRGHDM_USECURITY_CODE3.NEW_LINE    =true;
						objZUPRGHDM_USECURITY_CODE3.Name    = "Txt_ZUPRGHDM_USECURITY_CODE3";
						objZUPRGHDM_USECURITY_CODE3.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE3");
						oXForm.AuthObject(objZUPRGHDM_USECURITY_CODE3);

											objZUPRGHDM_USECURITY_CODE4.Name    = "Txt_ZUPRGHDM_USECURITY_CODE4";
						objZUPRGHDM_USECURITY_CODE4.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE4");
						oXForm.AuthObject(objZUPRGHDM_USECURITY_CODE4);

												objZUPRGHDM_USECURITY_CODE5.NEW_LINE    =true;
						objZUPRGHDM_USECURITY_CODE5.Name    = "Txt_ZUPRGHDM_USECURITY_CODE5";
						objZUPRGHDM_USECURITY_CODE5.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE5");
						oXForm.AuthObject(objZUPRGHDM_USECURITY_CODE5);

											objZUPRGHDM_USECURITY_CODE6.Name    = "Txt_ZUPRGHDM_USECURITY_CODE6";
						objZUPRGHDM_USECURITY_CODE6.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE6");
						oXForm.AuthObject(objZUPRGHDM_USECURITY_CODE6);

					#region USECURITY_RIGHT

					objZUPRGHDM_USECURITY_RIGHT.NEW_LINE = true;
					objZUPRGHDM_USECURITY_RIGHT.Name     = "Txt_ZUPRGHDM_USECURITY_RIGHT";
					objZUPRGHDM_USECURITY_RIGHT.Caption  = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_RIGHT");
					oXForm.AuthObject(objZUPRGHDM_USECURITY_RIGHT);

#endregion

#region USTAGE_CODE

					objZUPRGHDM_USTAGE_CODE.NEW_LINE = false;
					objZUPRGHDM_USTAGE_CODE.Name     = "Txt_ZUPRGHDM_USTAGE_CODE";
					objZUPRGHDM_USTAGE_CODE.Caption  = _Captions.Caption(this.UID_CODE,"lbl_USTAGE_CODE");
					oXForm.AuthObject(objZUPRGHDM_USTAGE_CODE);

#endregion

#region ZADD_DATE

					objZUPRGHDM_UZADD_DATE.NEW_LINE = true;
					objZUPRGHDM_UZADD_DATE.Name     = "Txt_ZUPRGHDM_UZADD_DATE";
					objZUPRGHDM_UZADD_DATE.Caption  = _Captions.Caption(this.UID_CODE,"lbl_UZADD_DATE");
					oXForm.AuthObject(objZUPRGHDM_UZADD_DATE);

#endregion

#region ZADD_USER

					objZUPRGHDM_UZADD_USER.Name    = "Txt_ZUPRGHDM_UZADD_USER";
					objZUPRGHDM_UZADD_USER.Caption = _Captions.Caption(this.UID_CODE,"lbl_UZADD_USER");
					oXForm.AuthObject(objZUPRGHDM_UZADD_USER);

#endregion

#region ZCHG_DATE
					objZUPRGHDM_UZCHG_DATE.NEW_LINE = true;
					objZUPRGHDM_UZCHG_DATE.Name     = "Txt_ZUPRGHDM_UZCHG_DATE";
					objZUPRGHDM_UZCHG_DATE.Caption  = _Captions.Caption(this.UID_CODE,"lbl_UZCHG_DATE");
					oXForm.AuthObject(objZUPRGHDM_UZCHG_DATE);

#endregion

#region ZCHG_USER
					objZUPRGHDM_UZCHG_USER.Name    = "Txt_ZUPRGHDM_UZCHG_USER";
					objZUPRGHDM_UZCHG_USER.Caption = _Captions.Caption(this.UID_CODE,"lbl_UZCHG_USER");
					oXForm.AuthObject(objZUPRGHDM_UZCHG_USER);
#endregion
				}

#endregion

#region UXDIR_CODE
			objDATA_VFS_UXDIR_CODE.Name        = "Txt_DATA_VFS_UXDIR_CODE";
			objDATA_VFS_UXDIR_CODE.Caption     = _Captions.Caption(this.UID_CODE,"lbl_UXDIR_CODE");
			objDATA_VFS_UXDIR_CODE.NEW_CELL    = true;
			objDATA_VFS_UXDIR_CODE.NEW_LINE    = true;
			objDATA_VFS_UXDIR_CODE.Index       = 102002;
			objDATA_VFS_UXDIR_CODE.STATUS_CODE = "HIDDEN";

			oXForm.AddObject(objDATA_VFS_UXDIR_CODE);
			oWindow.Components.Add(objDATA_VFS_UXDIR_CODE);


#endregion

#region XUID_CODE
			objZUPRGHDM_XUID_CODE.NEW_LINE = true;
			objZUPRGHDM_XUID_CODE.Name     = "Txt_ZUPRGHDM_XUID_CODE";
			objZUPRGHDM_XUID_CODE.Caption  = _Captions.Caption(this.UID_CODE,"lbl_XUID_CODE");
			objZUPRGHDM_XUID_CODE.Text     = "UID02001A";
			oXForm.AuthObject(objZUPRGHDM_XUID_CODE);
#endregion

			_Captions.Caption(this.UID_CODE,"lbl_XUID_CODE");

			objXDepend.Process();

			oXForm.AddXDepend(objXDepend.Depends);

			oWindow.AddWebForm(oXForm);

			//if (this.ZZEventStatus=="ADDNEW")
			//{
			//}else if (this.ZZEventStatus=="UPDATE")
			//{
			//}

			//_WebCells.ZZMUKI_EDITION = MUKI_EDITION;
			_WebCells.Name= "QID02001A";
			_WebCells.UID_CODE    = this.UID_CODE;
			_WebCells.USQL_CODE   = "QID02001A";
			_WebCells.STATUS_CODE = "VIEW";
			_WebCells.DbName    = this.DbName;
			_WebCells.PageSize    = 15;
			_WebCells.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			_WebCells.ZZLOGON_SSD = this.ZZLOGON_SSD;
			_WebCells.OnInit(objHttpContext);
				//_WebCells.WxfLook_Up =true;

				if (_WebCells.USQL_CODE!="")
				{
					oWindow.AddWxfPanel(_WebCells);
				}

			oWindow.DbName = this.DbName;
			oWindow.OnInit(objHttpContext);
		}

		public void Render(HtmlTextWriter objTextWriter)
		{

				//objWebPanels.setValue("UID02001A","view_status",_WebCells.VIEW_STATUS);
			objWebPanels["UID02001A","stage"]=this.ZZVIEW_STAGEU_CODE;

#region Toolbar

			dbToolbar objdbToolbar   = new dbToolbar();
			objdbToolbar.BTNS_CODE   = "BASIC;";
			objdbToolbar.UID_CODE    = this.UID_CODE;
			objdbToolbar.Trans       = this.Trans;
			objdbToolbar.DATA_STATUS_CODE = _UID02001AEntity.DATA_STATUS_CODE;
			objdbToolbar.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			objdbToolbar.ZZLOGON_SSD   = this.ZZLOGON_SSD;


			ZZBTNS oZZBTNS         = new ZZBTNS();
			oZZBTNS.BTNS_CODE      = "UID02001A;Basic_VFS;BASIC_Actions";
			oZZBTNS.UID_CODE       = this.UID_CODE;
			oZZBTNS.BTN_CLASS_CODE = "FUNS";
			oZZBTNS.Trans          = this.Trans;
			oZZBTNS.ODTP_STATUS_CODE = objdbToolbar.ODTP_STATUS_CODE;
			oZZBTNS.DATA_STATUS_CODE = _UID02001AEntity.DATA_STATUS_CODE;
			oZZBTNS.ZZLOGON_LANG   = this.ZZLOGON_LANG;
			oZZBTNS.ZZLOGON_SSD    = this.ZZLOGON_SSD;
			oZZBTNS.Process();

			ZZTrace.Debug(ZFILE_NAME,"oZZBTNS.BTNS.Count=["+oZZBTNS.BTNS.Count+"]");

			objdbToolbar.ActionsBTNS=oZZBTNS.BTNS;

			ZZBTNS oPRINTS           = new ZZBTNS();
			oPRINTS.BTNS_CODE        = "UID02001A;BASIC_Print";
			oPRINTS.UID_CODE         = this.UID_CODE;
			oPRINTS.BTN_CLASS_CODE   = "PRINT";
			oPRINTS.VIEW_STAGEU_CODE = this.ZZVIEW_STAGEU_CODE;
			oPRINTS.Trans            = this.Trans;
			oPRINTS.ODTP_STATUS_CODE = objdbToolbar.ODTP_STATUS_CODE;
			oPRINTS.DATA_STATUS_CODE = _UID02001AEntity.DATA_STATUS_CODE;
			oPRINTS.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			oPRINTS.ZZLOGON_SSD = this.ZZLOGON_SSD;
			oPRINTS.Process();

			objdbToolbar.PrintBTNS=oPRINTS.BTNS;

			objdbToolbar.Process();
			
			objWebBTNS= objdbToolbar.XWebBTNS;
			oWindow.AddToolBar(objWebBTNS);
			oWindow.BTNS = objdbToolbar.BTNS;
#endregion

			objZUPRGHDM_USTAGE_CODE.Text=this.ZZVIEW_STAGEU_CODE;


			_STATUS_DATA["ZZVIEW_MODE_CODE"]   = this.ZZVIEW_MODE_CODE;
			_STATUS_DATA["ZZVIEW_STATUS_CODE"] = this.ZZVIEW_STATUS_CODE;
			_STATUS_DATA["ZZVIEW_STAGEU_CODE"] = this.ZZVIEW_STAGEU_CODE;

			oWindow.VIEW_MODE_CODE    = this.ZZVIEW_MODE_CODE;
			oWindow.VIEW_STATUS_CODE  = this.ZZVIEW_STATUS_CODE;
			oWindow.VIEW_STAGEU_CODE  = this.ZZVIEW_STAGEU_CODE;

			
			_WebCells.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			_WebCells.STATUS_CODE   = "VIEW";
			_WebCells.WXFLite       = this.Entity.Wxf;
			_WebCells.OperationMode = "EDIT";
			_WebCells.ZZLOGON_ID    = this.ZZLOGON_ID;
			_WebCells.Trans         = this.Trans;
			_WebCells.Process();

			oWindow.WindowsStatus = _STATUS_DATA;
			oWindow.UID_CODE      = "UID02001A";
			oWindow.Template      = "";
			oWindow.APP_PATH      = this.APP_PATH;
			ZZTrace.Debug(ZFILE_NAME,this.APP_PATH+"System\\templates\\");

			if (File.Exists(this.APP_PATH+"System\\templates\\"))
			{
				oWindow.Tmpl         = TmplManager.FromString(ZZGeneral.ReadStream(this.APP_PATH+"System\\templates\\").ToString());
			}else	if (File.Exists(this.APP_PATH+"System\\templates\\UID02001A.tpl"))
			{
				oWindow.Tmpl         = TmplManager.FromString(ZZGeneral.ReadStream(this.APP_PATH+"System\\templates\\UID02001A.tpl").ToString());
			}
			oWindow.Trans         = this.Trans;
			oWindow.Exceptions    = this.Exceptions;
			oWindow.Render(objTextWriter);


			//			Trans.Close();
		}

		private XForm             oXForm;             
		private WebPanels         objWebPanels    = new WebPanels();
		private ZZDocsPermission  _DocsPermission = new ZZDocsPermission();
		private	XStatus           _STATUS_DATA    = new XStatus();
		private	WebLookup         _WebLookup      = new WebLookup();
		private WebOption         _WebOption      = new WebOption();
		private Window            oWindow         = new Window();
		private WebBTNS           objWebBTNS      = new WebBTNS();
		private WebCells          _WebCells       = new WebCells();

			private WebCaption objZUPRGHDM_USECURITY_CODE1 =new WebCaption();
					private WebCaption objZUPRGHDM_USECURITY_CODE2 =new WebCaption();
					private WebCaption objZUPRGHDM_USECURITY_CODE3 =new WebCaption();
					private WebCaption objZUPRGHDM_USECURITY_CODE4 =new WebCaption();
					private WebCaption objZUPRGHDM_USECURITY_CODE5 =new WebCaption();
					private WebCaption objZUPRGHDM_USECURITY_CODE6 =new WebCaption();
		
		private WebCaption  objZUPRGHDM_UZADD_DATE      = new WebCaption();
		private WebCaption  objZUPRGHDM_UZADD_USER      = new WebCaption();
		private WebCaption  objZUPRGHDM_UZCHG_DATE      = new WebCaption();
		private WebCaption  objZUPRGHDM_UZCHG_USER      = new WebCaption();
		private WebCaption  objZUPRGHDM_USECURITY_RIGHT = new WebCaption();
		private WebCaption  objZUPRGHDM_USTAGE_CODE     = new WebCaption();
		private WebHideBox  objDATA_VFS_UXDIR_CODE           = new WebHideBox();
		private WebCaption  objZUPRGHDM_XUID_CODE       = new WebCaption();


		private List<AComponent>  _ZZCDFElect     = new List<AComponent>();
		public List<LogisticException> Exceptions = new List<LogisticException>();

		private string         _APP_PATH           = "";
		private string         _ATVT_CODE          = "";
		private string         UID_CODE            = "UID02001A";
		private string         _DbName             = "";
		private string         _DATA_STATUS_CODE   = "NONE";
		private string         _ZZLOGON_LANG       = "";
		private string         _ZZLOGON_SSD        = "";
		private string         _ZZEventOpts        = "";
		private string         _ZZVIEW_MODE_CODE = "";
		private string         _ZZVIEW_STATUS_CODE = "";
		private string         _ZZVIEW_STAGEU_CODE = "";
		private string         _ZZLOGON_MODE       = "";
		private string         _ZZEventStatus      = "";
		private string         _ZZEventStage       = "";
		private string         _ZZEventArgs        = "";
		private string         _ZZLOGON_ID         = "";
		private string         _lnk_RW_NO          = "-1";
		private string         _lnk_MODE           = "-1";
		
		private StreamContext _Trans;
		private Wxf            _Wxf                = new Wxf();
		private XConvert       _Convert            = new XConvert();
		private ZZCaptions     _Captions           = new ZZCaptions();
		private UID02001AE   _UID02001AEntity  = new UID02001AE();

		public UID02001AE Entity { get { return  _UID02001AEntity ; } set { _UID02001AEntity = value; }  }

		public string   lnk_MODE          { get { return _lnk_MODE;     } set { _lnk_MODE     = value; }  }
		public string   lnk_RW_NO          { get { return _lnk_RW_NO;     } set { _lnk_RW_NO     = value; }  }
		public string   ZZLookup          { get { return _WebLookup.Text;     } set { _WebLookup.Text     = value; }  }
		public string   ZZWebOption       { get { return _WebOption.Text;     } set { _WebOption.Text     = value; }  }
		public Wxf      ZZWxf             { get { return _Wxf;                } set { _Wxf                = value; }  }
		public WebPanels ZZPanels         { get { return objWebPanels;        } set { objWebPanels        = value; }  }
		public WebCells CellsPanel        { get { return _WebCells;           } set { _WebCells           = value; }  }
		public string  DbName             { get { return _DbName;             } set { _DbName             = value; }  }
		public string  ZZLOGON_SSD        { get { return _ZZLOGON_SSD;        } set { _ZZLOGON_SSD        = value; }  }
		public string  ZZLOGON_ID         { get { return _ZZLOGON_ID;         } set { _ZZLOGON_ID         = value; }  }
		public string  ZZEventOpts        { get { return _ZZEventOpts;        } set { _ZZEventOpts        = value; }  }
		public string  ZZVIEW_MODE_CODE { get { return _ZZVIEW_MODE_CODE; } set { _ZZVIEW_MODE_CODE = value; }  }
		public string  ZZVIEW_STATUS_CODE { get { return _ZZVIEW_STATUS_CODE; } set { _ZZVIEW_STATUS_CODE = value; }  }
		public string  ZZVIEW_STAGEU_CODE { get { return _ZZVIEW_STAGEU_CODE; } set { _ZZVIEW_STAGEU_CODE = value; }  }
		public string  ZZLOGON_MODE       { get { return _ZZLOGON_MODE; } set { _ZZLOGON_MODE = value; }  }
		public string  ZZEventStatus      { get { return _ZZEventStatus;      } set { _ZZEventStatus      = value; }  }
		public string  ZZEventStage       { get { return _ZZEventStage;       } set { _ZZEventStage       = value; }  }
		public string  ZZEventArgs        { get { return _ZZEventArgs;        } set { _ZZEventArgs        = value; }  }
		public string  ZZLOGON_LANG       { get { return _ZZLOGON_LANG;       } set { _ZZLOGON_LANG       = value; }  }
		public string  ATVT_CODE          { get { return _ATVT_CODE;          } set { _ATVT_CODE          = value; }  }
		public string  DATA_STATUS_CODE   { get { return _DATA_STATUS_CODE;   } set { _DATA_STATUS_CODE   = value; }  }
		public string  APP_PATH           { get { return _APP_PATH;           } set { _APP_PATH           = value; }  }
		
		public StreamContext  Trans              { get { return _Trans;           } set { _Trans           = value; }  }

#region screen element


					private WebTextBox objZUPRGHDM_UID_CODE =new WebTextBox();

					private WebTextBox objZUPRGHDM_ABBR_NAME =new WebTextBox();

					private WebTextBox objZUPRGHDM_TABLE_NAME =new WebTextBox();

					private WebTextBox objZUPRGHDM_PK_COLUMN_NAME =new WebTextBox();

					private WebTextBox objZUPRGHDM_PK_TP_CODE =new WebTextBox();

					private WebTextBox objZUPRGHDM_UID_TP_CODE =new WebTextBox();

					private WebTextBox objZUPRGHDM_LNK_UID_CODE =new WebTextBox();

					private WebTextBox objZUPRGHDM_USQL_CODE =new WebTextBox();

					private WebCheckBox objZUPRGHDM_ACTIVE_BIT =new WebCheckBox();

					private WebTextBox objVARIABLE_UID_CHS_NAME =new WebTextBox();

					private WebTextBox objVARIABLE_UID_ENG_NAME =new WebTextBox();

#endregion
		const  string ZFILE_NAME   ="UID02001AV";
		const  string MUKI_EDITION ="MIN";

	}
}
